package chapter_12_flyweight.classic;

/**
 * Created by CharloYao on 2017/10/13.
 */
public class ConcreteFlyweight extends Flyweight {

    //接受外部状态
    public ConcreteFlyweight(String extrinsic) {
        super(extrinsic);
    }

    //根据外部状态进行处理
    @Override
    public void operation() {
        //业务逻辑
        System.out.println("外部状态："+super.Extrinsic);
    }
}
